package com.cwnu.onlinemall.controller;

import com.cwnu.onlinemall.pojo.ServerResult;
import com.cwnu.onlinemall.service.customerService;
import com.cwnu.onlinemall.service.masterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class masterController {
    @Autowired
    masterService masterService;
    @RequestMapping("/master/selectAll")
    public ServerResult selectAll(){
        return new ServerResult(0,"查询成功",masterService.selectALL());
    }


}
